#include <gtest/gtest.h>

/**
 * ASSERT_*
 * EXPECT_*
 */

/**
 * 布尔值检查
 * ASSERT_TRUE(condition)
 * ASSERT_FALSE(condition)
 * EXPECT_TRUE(condition)
 * EXPECT_TRUE(condition)
 */

/**
 * 数值型数据检查
 * *_EQ(expected, actual)
 * *_NE(expected, actual
 * *_LT
 * *_LE
 * *_GT
 * *_GE
 */

/**
 * 字符串检查
 * *_STREQ(expected_str, actual_str)
 * *_STRNE
 * *_STRCASEEQ
 * *_STRCASENE
 */

static inline int add(int a, int b)
{
	return a + b;
}


TEST(addTest, HandleNoneZeroInput)
{
	EXPECT_EQ(6, add(1, 5));
	EXPECT_EQ(19, add(12, 7));
}

int main(int argc, char * argv[])
{
	testing::InitGoogleTest(&argc, argv);
	return RUN_ALL_TESTS();
}
